package com.atom.app.mvi.db

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*

@Entity(tableName = "table_image")
class Image : AbstractUpdateable() {

    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    var id: Long? = null

    @ColumnInfo(name = "name")
    var name: String? = null

    init {
        name = UUID.randomUUID().toString()
    }

    override fun toString(): String {
        return "${super.toString()} id=$id , name=$name "
    }


}
